﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Linq;
namespace Exact_Extension
{
    public partial  class DebtorListForm : DevExpress.XtraEditors.XtraForm
    {
        ExactDataContext DS;
        public DebtorListForm(ExactDataContext _DS)
        {
            InitializeComponent();
            DS = _DS;
        }

        private void btnLoad_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var query = from Debtor in DS.ISHCMC_V_StudentListWithDebtors
                        select Debtor;
            this.iSHCMCVStudentListWithDebtorBindingSource.DataSource = query;
        }

        private void btnExport_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.gridControl_Debtor.ShowPrintPreview();
        }

        
    }
}